package com.it.tydic.estate.module.mapper.inner;

import com.github.pagehelper.Page;
import com.it.tydic.estate.common.base.BaseMapper;
import com.it.tydic.estate.module.model.Vo.ReturnObjectVo;
import com.it.tydic.estate.module.model.inner.TbCustomerEvents;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface TbCustomerEventsMapper extends BaseMapper<TbCustomerEvents> {
    /**
     * 列表查询
     * @param map
     * @return
     */
    Page<TbCustomerEvents>selectListEventsByLike(Map<String,Object> map);
    /**
     * 批量删除
     * @param list
     * @return
     */
    int deleteByList(List<String> list);

    /**
     * 获取事件类型
     * @param codeId
     * @return
     */
    List<ReturnObjectVo> getType(@Param("codeId") String codeId);

    /**
     * 获取楼宇
     * @param xqid
     * @return
     */
    List<ReturnObjectVo> selectLy(@Param("xqid") String xqid);

    /**
     * 获取房间
     * @param lyid
     * @return
     */
    List<ReturnObjectVo> selectRoom(@Param("lyid") String lyid);
}